
<!DOCTYPE html  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
    <title>MyPetStore</title>
</head>
<body>
<div th:replace="/common/Header :: header"></div>
<div id="Content">
    <div id="BackLink">
        <a th:href="@{ViewProduct(productId=${product.productId})}" th:text="${product.productId}">Return to ProductId</a>
    </div>

    <div id="Catalog">

        <table>
            <tr>
                <td th:utext="${product.description}">Description</td>
            </tr>
            <tr>
                <td><b th:text="${item.itemId}"> ItemId </b></td>
            </tr>
            <tr>
                <td><b><font size="4" th:text="${item.attribute1}">Attributes </font></b></td>
            </tr>
            <tr>
                <td th:text="${product.name}">Product Name</td>
            </tr>
            <tr>
                <td th:if="${item.quantity} le '0'">
                    Back ordered.
                </td>
                <td th:if="${item.quantity} gt '0'" th:text="${item.quantity}+' in stock'">
                    quantity in stock.
                </td>
            </tr>
            <tr>
                <td th:text="${'￥'+#numbers.formatDecimal(item.listPrice,0,'COMMA',2,'POINT')}">
                    Price
                </td>
            </tr>

            <tr>
                <td>
                    <a class="Button" th:href="@{/cart/addItemToCart(workingItemId=${item.itemId})}"   target="_blank">Add to Cart</a>
                </td>
            </tr>
        </table>

    </div>
</div>
<div th:replace="/common/Footer :: footer"></div>
</body>
</html>